import axios from "axios"
export default{
    //获取所有订单信息
    getOrders(query){
        return axios.post("/api/order/getAllOrders",query)
    },
    //通过oid获取订单项和商品信息
    getProductByOid(oid){
        return axios.get("/api/order/getProductByOid?oid="+oid)
    },
    //更改订单信息
    updateOrders(form){
        return axios.post("/api/order/updateOrders",form)
    },
    //确认发货
    ConfirmDelivery(oid){
        return axios.get("/api/order/ConfirmDelivery?oid="+oid)
    }
}